
import 'dart:typed_data';

import 'mdict_flutter_plugin_platform_interface.dart';

class MdictFlutterPlugin {
  Future<String?> getPlatformVersion() {
    return MdictFlutterPluginPlatform.instance.getPlatformVersion();
  }

  Future<String?> lookforMdict(String path, String word) {
    return MdictFlutterPluginPlatform.instance.lookforMdict(path, word);
  }

  Future<void> releaseMdict(String path) {
    return MdictFlutterPluginPlatform.instance.releaseMdict(path);
  }

  Future<int?> getSizeMdict(String path) {
    return MdictFlutterPluginPlatform.instance.getSizeMdict(path);
  }

  Future<List<String>?> suggestMdict(String path, String word, String maxCount) {
    return MdictFlutterPluginPlatform.instance.suggestMdict(path, word, maxCount);
  }

  Future<Uint8List?> getResourceMdict(String path, url) {
    return MdictFlutterPluginPlatform.instance.getResourceMdict(path, url);
  }

  Future<String?> getNameMdict(String path) {
    return MdictFlutterPluginPlatform.instance.getNameMdict(path);
  }
}
